import request from '@/utils/request'
// 新增投保单
export function addbx(query) {
  return request({
    url: '/insuranceOrder/add',
    method: 'post',
    data: query
  })
}
// 编辑投保单 
export function editbx(data) {
  return request({
    url: '/insuranceOrder/update',
    method: 'put',
		data:data
  })
}
// 投保单详情
export function bxdetail(data) {
  return request({
    url: '/insuranceOrder/detail/'+data,
    method: 'get',
  })
}
// 上传凭证
export function shangchuanimg(data) {
  return request({
    url: '/insuranceOrder/uploadVoucher',
    method: 'put',
		data:data
  })
}
// 我的投保单列表
export function mybxlist(data) {
  return request({
    url: '/insuranceOrder/list',
    method: 'get',
		params:data
  })
}
// 删除投保单
export function delbx(data) {
  return request({
    url: '/insuranceOrder/delete/'+data,
    method: 'delete',
  })
}
//  获取七牛token
export function qiniutoken(data) {
  return request({
    url: '/qiniu/upToken/tiyulife',
    method: 'get',
		params:data
  })
}
// /h5/elevator/list  电梯列表
export function getelevatorlist(data) {
  return request({
    url: '/h5/elevator/list',
    method: 'get',
		params:data
  })
}
